var Date_Object = new Date();
Date_Object.setDate(1);
var first_DOW = Date_Object.getDay();
var DO_year = Date_Object.getFullYear();

var today = new Date();
var monthIndex=today.getMonth();
var day=today.getDate();
var year=today.getFullYear();
var month;
var clickedDay;

function calcMonthPrev() {
    if(monthIndex===0){
        monthIndex=11;
        DO_year--;
        Date_Object.setFullYear(DO_year);
        Date_Object.setMonth(11);
        Date_Object.setDate(1);
        first_DOW = Date_Object.getDay();
        console.log(DO_year);
    }
    else{
        monthIndex--;
        Date_Object.setMonth(monthIndex);
        Date_Object.setDate(1);
        first_DOW = Date_Object.getDay();
    }

    month = monthIndex+1;
}
function calcMonthNext() {
    if(monthIndex===11){
        monthIndex=0;
        DO_year++;
        Date_Object.setFullYear(DO_year);
        Date_Object.setMonth(0);
        Date_Object.setDate(1);
        first_DOW = Date_Object.getDay();
    }
    else{
        monthIndex++;
        Date_Object.setMonth(monthIndex);
        Date_Object.setDate(1);
        first_DOW = Date_Object.getDay();
    }
    month = monthIndex+1;
}

function calcYear(){
    return DO_year;
}

function getMonth(){
    return month;
}
//DAN

